// 导入模块
const wdSkeleton = require("wd-skeleton");
// const wdSkeleton = require("/Users/wang/工作/微贷网git/tool.skeleton/index.js");

// 配置参数
const options = {
    // chromium路径
    chromiumPath: "/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome",
    // 模式 server|dist|demo
    mode: "server",
    idSelector: "app",
    // demo模式页面地址
    demoUrl: "http://0.0.0.0/index.html",
    // server模式配置
    serverMode: {
        server: "http://localhost.shwzfa.cn",
        outputDir: "./src/skeleton",
        outputType: "selector" // 输出类型 selector|html
    },
    // dist模式配置
    distMode: {
        assetsDir: "./dist",
        assetsUrl: {
            absolute: "//static1.wdai.com/static/fed/fed/app.UnionBlackCard/",
            relative: "./"
        }
    },
    imgReplaceUrl: "https://m.shwzfa.cn/static/img/placeholder_img.png",
    pages: [
        "index.html",
        "search.html",
        "seckill.html",
        "couponCode.html",
        "login.html",
        "category.html",
        "redpacket.html",
        {
            name: "myCenter.html",
            routers: ["#/Home", "#/Feedback", "#/Settings", "#/ChangeMobile"]
        },
        {
            name: "hibeans.html",
            routers: ["#/Home", "#/Detail"]
        },
        {
            name: "invite.html",
            routers: ["#/Home", "#/MyFriend", "#/Invite"]
        },
        {
            name: "invite.html",
            routers: ["#/Home", "#/MyFriend", "#/Invite"]
        },
        {
            name: "helpCenter.html",
            routers: ["#/Buyer", "#/Seller"]
        },
        {
            name: "sellerEnter.html",
            routers: ["#/Form", "#/Result/success", "#/Result/hasbeen"]
        },
        {
            name: "order.html",
            routers: ["#/List/unconfirmed", "#/List/appeal", "#/List/unconfirmed", "#/Favorite"]
        },
        {
            name: "market.html",
            routers: ["#/Recommend", "#/Collection"]
        }
    ],
    matchRule:{
        ignore: [""],
        translate: [""]
    }
}
// 传入参数
wdSkeleton(options);